package com.chinasofti.xian.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

//value值为要调用的服务提供者（其他微服务）的服务ID名称
@FeignClient("SERVICE-THREE")
public interface ServiceThreeFeign {
    //内部调用“SERVICE-THREE”微服务的“ServiceThree”方法
    @RequestMapping("/ServiceThree")
    JSONObject serviceThree();

    //内部调用“SERVICE-THREE”微服务的“serviceThree_toOne”方法
    @RequestMapping("/serviceThree_toOne")
    JSONObject serviceThree_toOne();

    //内部调用“SERVICE-THREE”微服务的“serviceThree_toTwo”方法
    @RequestMapping("/serviceThree_toTwo")
    JSONObject serviceThree_toTwo();
}